-- GENERATED SPELL FOR [Vengeful Apparition] --


function spell0_16328(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_16328', 591, 1)
end

function Sorts_16328(pUnit, Event)
local choix_sorts_16328 = math.random(0, 0)
if choix_sorts_16328 == 0 then
pUnit:RegisterEvent('spell0_16328', 1, 1)
end
end

function mob16328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16328', math.random(1500, 3000), 1)
end

function mob16328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16328, 1, 'mob16328_Action')
RegisterUnitEvent(16328, 2, 'mob16328_Leave')
RegisterUnitEvent(16328, 3, 'mob16328_Kill')
RegisterUnitEvent(16328, 4, 'mob16328_Die')
